// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/elemac/api/DeviceHospitalPointApi'

import DtoClass from '@api/elemac/model/HospitalPointControlReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  async hospitalPointControl(param, TIP = '点位控制') {
    const req = CORE.grpcDTO(DtoClass, param)
    const res = await CORE.grpc(TIP, CLIENT, 'hospitalPointControl', req)
    return res
  },
}
